home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MLOCK C Library Procedures MLOCK
-
-
-
- NNAAMMEE
- mlock, munlock - lock and unlock pages in memory.
-
- SSYYNNOOPPSSIISS
- iinntt mmlloocckk((aaddddrr,, lleenn))
- iinntt mmuunnlloocckk((aaddddrr,, lleenn))
- ccaaddddrr__tt aaddddrr;;
- iinntt lleenn;;
-
- DDEESSCCRRIIPPTTIIOONN
- _M_l_o_c_k takes an address range and locks the associated pages
- into physical memory.
-
- _M_u_n_l_o_c_k takes an address range and unlocks the associated
- pages so they can be paged out.
-
- RREETTUURRNN VVAALLUUEE
- _M_l_o_c_k and _M_u_n_l_o_c_k return 0 if they are successful. Other-
- wise they return -1 and an error code is returned in _e_r_r_n_o.
-
- BBUUGGSS
- These functions don't have much error checking. Pages that
- are locked down and not unlocked may remain unusable after
- the process terminates.
-
- SSEEEE AALLSSOO
- mmap(2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 November 19, 1989 1
-
-
-
-